//
//  Profile.h
//  A One POS
//
//  Created by AonePOS on 24/09/13.
//  Copyright (c) 2013 AonePOS. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "NSString+md5string.h"
#import "general data.h"


@interface Profile : UIViewController<UITextFieldDelegate,NSURLConnectionDataDelegate,UITableViewDataSource,UITableViewDelegate>

{
   
    UIView *sidemenu,*mainview,*backgroundcolorview;
    UIButton *categorybutton;
  
    UIImageView *logobackview,*logoimageview;
    int y,p;
    _Bool isLandScope;
    UIButton *helpiconButton,*logouticonButton,*menubutton;
    BOOL menuslected;
    UIButton *backButton3,*backButton2,*backButton;
    UINavigationBar *navBar;
    
    UIButton *saveprofiledataBtn,*cancelProfiledata;
    
    UILabel *textLabel;
    UITextField *dataField;
    UIScrollView *profiledataScrollview;
    NSString *Emailid,*userid,*password,*firstname,*lastname,*middlename,*phonenumber,*address,*confirmpassword;
    UIToolbar *maintoolBar;
    NSMutableDictionary *JsonSendDataDict;
    NSMutableArray *admindataArray;
    NSURLConnection *connection1,*CategoryConnection,*EditConnection;
    NSMutableData *responseData,*CatresponseData,*EditResponseData;
    NSMutableDictionary *dataDict;
    
    UIButton *EditProfileBtn,*ViewProfileBtn,*EditPassWordBtn;
    
//Edit Password View
    UIView *EditPasswordBackView;
    UIScrollView *EditPasswordView;
    UILabel *Oldpasswordlbl,*newpwdlbl,*ConfirmPasswordlbl;
    UITextField *OldpwdField,*NewpwdField,*ConfirmPwdField;
    UIButton *SaveEditPwdBtn,*CancelEditpwdBtn;
//View profile data view
    UIView *ViewProfiledatabackView;
    UITableView *ProfileDataTable;
    NSArray *allkeysArray,*AllvaluesArray;
    
 //Edit profile view
    UIView *EditProfileBackView;
    UIScrollView *EditProfileView;
    UILabel *Editprofilelbl;
    UITextField *editProfileField;
    UIButton *SaveEditprofileBtn,*CancelEditprofileBtn;
    UILabel *useridlbl,*Firstnamelbl,*lastnamelbl,*emaillbl,*phnumberlbl,*addresslbl;
    UITextField *useridField,*FirstnameField,*lastnameField,*EmailField,*PhnumberField,*addressField;
    NSString *Unique_id,*Newpassword;
    
    
    UILabel *sationLbl,*Timelbl,*EmpIdlbl;
    UIButton *logoBtn;
    
    UIAlertView *saveProfileAlert;
    
}

-(void)releaseViews;
@end
